package edu.xpu.project.user.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @describe 学生考场实体
 * @author liukang
 * @date 2017年5月20日
 */
@Entity(name="ExamPlaceEntity")
@Table(name="XPU_EXAM_PLACE")
public class ExamPlaceEntity implements Serializable {

	private static final long serialVersionUID = 990262108364173133L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	private String examPlaceName;			//考场名称
	
	private String examPoint;				//考试考点
	
	/**
	 * 一个考场有多个学生
	 */
	@OneToMany(mappedBy="studentClass")
	private Set<ProjectUser> projectUsers;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getExamPlaceName() {
		return examPlaceName;
	}

	public void setExamPlaceName(String examPlaceName) {
		this.examPlaceName = examPlaceName;
	}

	public Set<ProjectUser> getProjectUsers() {
		return projectUsers;
	}

	public void setProjectUsers(Set<ProjectUser> projectUsers) {
		this.projectUsers = projectUsers;
	}
	public String getExamPoint() {
		return examPoint;
	}
	public void setExamPoint(String examPoint) {
		this.examPoint = examPoint;
	}
	
}
